obj-m += semaphore_app.o

KERNELDIR := /home/heng/work/opensource/kernel-4.4.94
PWD := $(shell pwd)

all:
	make -C $(KERNELDIR) M=$(PWD) modules
	mips-linux-uclibc-gnu-gcc -lpthread SemaphoreApp.c -o SemaphoreApp 

.PHONY: clean
clean:
	make -C $(KERNELDIR) M=$(PWD) clean
